Skip to content

Update version to 0.2.6.4-STABLE, add ExampleUsages class, and implem…#29

Merged
Sandro642 merged 2 commits into
mainfrom
feature/async
Jul 20, 2025
Merged

Update version to 0.2.6.4-STABLE, add ExampleUsages class, and implem…#29
Sandro642 merged 2 commits into
mainfrom
feature/async

Conversation

@Sandro642
Copy link
Copy Markdown
Collaborator

…ent asynchronous job execution

@Sandro642 Sandro642 requested a review from Copilot July 20, 2025 13:47
@Sandro642 Sandro642 self-assigned this Jul 20, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates ConnectLib to version 0.2.6.4-STABLE with a major architectural change to support asynchronous job execution. The primary purpose is to refactor the API response handling from synchronous blocking operations to reactive streams using Project Reactor's Mono type.

  • Refactored getResponse() method to return Mono<ApiFactory> instead of ApiFactory for asynchronous execution
  • Added comprehensive example usage class demonstrating both synchronous and asynchronous patterns
  • Removed deprecated convenience methods from JobGetInfos class to simplify the API

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
src/main/java/fr/sandro642/github/jobs/JobGetInfos.java Refactored getResponse() to return Mono and removed deprecated convenience methods
src/test/java/fr/sandro642/github/test/MainTest.java Updated test methods to handle new asynchronous API with CompletableFuture and .block() operations
src/main/java/fr/sandro642/github/example/ExampleUsages.java Added new example class with comprehensive usage patterns for both sync and async operations
readme.md Updated version references and documentation links
Comments suppressed due to low confidence (1)

src/main/java/fr/sandro642/github/example/ExampleUsages.java:97

  • [nitpick] Inconsistent spacing in generic type declaration. Should be 'Map<String, ?>' to match the spacing used in line 96.
        Map<String,?> params = Map.of();

Comment thread src/main/java/fr/sandro642/github/example/ExampleUsages.java Outdated
Comment thread src/test/java/fr/sandro642/github/test/MainTest.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Sandro642 Sandro642 merged commit b533b3d into main Jul 20, 2025
@Sandro642 Sandro642 deleted the feature/async branch July 20, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants